import React from 'react'
import { History } from 'history'

export interface RouteConfig {
  path: string;
  component?: string;
  title: string;
  children?: RouteConfig[];
  authority?: string[];
}

export interface ComponentCachedRouteConfig extends RouteConfig {
  Component: React.LazyExoticComponent<React.ComponentType<any>>;
}

export interface HistoryProps {
  history: History;
}
